<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box">
        <button @click="clickme" v-show="showBtn">click me</button>
    </div>
    <script src="js/vue.js"></script>
    <script>
        let vm = new Vue({
            el:"#box",
            data:{
                showBtn:true
            },
            methods:{
                clickme(){
                    console.log("点击了");
                }
            }
        })
    </script>
</body>
</html>